package vip.bblog.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.bblog.common.utils.BaseResult;
import vip.bblog.user.entity.SystemUser;

/**
 * <p>
 * 系统（后台）用户表 服务类
 * </p>
 *
 * @author yuyong
 * @since 2019-04-28
 */
public interface SystemUserService extends IService<SystemUser> {

    /**
     * 增加用户
     * @param systemUser
     * @return
     */
    BaseResult<Object> insert(SystemUser systemUser);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    BaseResult<Object> deleteById(String id);

    /**
     * 模糊分页查询用户
     * @param page
     * @param systemUser
     * @return
     */
    BaseResult<Object> selectPageByExample(Page<SystemUser> page, SystemUser systemUser);
}
